$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$width: 82.292vw;

.home {
  position: relative;
  width: 100%;
  .banner{
    position: relative;
    padding-top: 3vw;
    .bg{
      overflow: hidden;
      img{
        width: 100%;
        transform: scale(1.1);
        transition: all 600ms;
        object-fit: cover;
      }
    }
    .text{
      width:$width;
      left: calc((100% - 82.292vw) / 2);
      position: absolute;
      top:60%;
      transform: translateY(-50%);
      .t{
        color: #FFF;
        font-size: $fontSize_90;
        font-weight: 600;
      }
      .t2{
        color: #E11B00;
        font-size: $fontSize_24;
        font-weight: 500;
      }
    }
    &:hover{
      .bg{
        img{
          transform: scale(1);
        }
      }
    }
  }
  .section1 {
    width: $width;
    margin: 8vw auto;

    .t {
      display: flex;
      align-items: center;
      font-size: $fontSize_50;
      font-weight: 600;
      &::before {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        background: #F90D1B;
        margin-right: 10px;
      }
    }
    .content{
      position: relative;
      padding-top: 15px;
      .pic{
        position: absolute;
        right: 0;
        top:-3vw;
        width: 64%;
        overflow: hidden;
        img{
          width: 100%;
          transition: all 600ms;
        }
        &:hover{
          img{
            transform: scale(1.05);
          }
        }
      }
      .des{
        width: 65%;
        background-color: #FAFAFA;
        padding: 3vw 2vw;
        .txt{
          width: 45%;
          color: #666;
          font-size: $fontSize_22;
          line-height: 1.8;
        }
      }
    }
  }

  .section2 {
    width: $width;
    margin: 8vw auto;

    .t {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      font-size: $fontSize_50;
      font-weight: 600;
      &::before {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        background: #F90D1B;
        margin-right: 10px;
      }
    }
    .content{
      position: relative;
      background-color: #FAFAFA;
      display: flex;
      justify-content: space-between;
      padding:4vw 2vw;
      align-items: flex-end;
      margin: 2vw 0 0 2vw;
      .pic{
        position: absolute;
        left: -2vw;
        top:-5vw;
        width:68%;
        overflow: hidden;
        img{
          width: 100%;
          transition: all 600ms;
        }
        &:hover{
          img{
            transform: scale(1.05);
          }
        }
      }
      .nums{
        width: 65%;
        display: flex;
        justify-content: space-between;
        .item{
          width: 20%;
          border-right: 1px solid rgba(217, 217, 217, 1);
          text-align: center;
          .num{
            position: relative;
            display: inline-block;
            .sp1{
              color: #F90D1B;
              font-size: $fontSize_64;
              font-weight: 900;
              font-family: 'Montserrat-Regular';
            }
            .sp2{
              color: #F90D1B;
              font-size: $fontSize_22;
              font-weight: 600;
            }
            .sp3{
              color: #F90D1B;
              font-size: $fontSize_36;
              font-weight: 600;
              position: absolute;
              right:-10px;
              top:-10px;
            }
          }
          .tag{
            color: #666;
            font-size: $fontSize_22;
            font-weight: 300;
          }
        }
        .item:last-child{
          border-right: none;
        }
      }
      .des{
        width: 30%;
        color: #666;
        font-size: $fontSize_22;
        font-weight: 300;
        line-height: 1.8;
      }
    }
  }

  .section3{
    background-color: #F7F7F7;
    padding: 3vw 0;
    .icons{
      width: $width;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      .item{
        width: 24%;
        background-color: white;
        height:100px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 1%;
        margin-bottom: 15px;
        img{
          max-width: 80%;
          max-height: 80%;
          object-fit: contain;
        }
      }
    }
  }

  .section4{
    width: $width;
    margin: 6vw auto;
    .t{
      font-size: $fontSize_50;
      font-weight: 600;
    }
    .content{
      margin: 3vw  0;
      display: flex;
      justify-content: space-between;
      .item{
        width: 32%;
        .icon {
          img {
            width: 4vw;
          }
        }
  
        .p1 {
          font-size: $fontSize_32;
          font-weight: 600;
          margin: 1.5vw 0 1vw 0;
        }
  
        .des {
          color: #666;
          font-size: $fontSize_22;
          font-weight: 300;
          line-height: 1.6;
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      padding-top: 0;
      .bg{
        img{
          min-height: 200px;
        }
      }
      .text{
        .t{
          font-size: 24px;
        }
        .t2{
          font-size: 18px;
        }
      }
    }
    .section1{
      width: 90%;
      margin: 30px auto;
      .t{
        font-size: 24px;
      }
      .content{
        padding-top: 0;
        .pic{
          position: static;
          width: 100%;
        }
        .des{
          width: 90%;
          padding: 15px 5%;
          margin: 15px 0;
          .txt{
             width: 100%;
            font-size: 16px;
          }
        }
      }
    }
    .section2{
      width: 90%;
      margin: 30px auto;
      .t{
        font-size: 24px;
      }
      .content{
        padding: 20px;
        margin: 15px 0;
        flex-direction: column-reverse;
        .pic{
           position: static;
           width: 100%;
           margin-top: 15px;
        }
        .des{
          width: 100%;
          font-size: 16px;
        }
        .nums{
          width: 100%;
          margin-top: 20px;
          flex-wrap: wrap;
          .item{
            width: 48%;
            margin-bottom: 15px;
            .num{
              .sp1{
                font-size: 24px;
              }
              .sp2{
                font-size: 16px;
              }
              .sp3{
                font-size: 14px;
                top:-5px;
              }
            }
            .tag{
              font-size: 16px;
            }
          }
          .item:nth-child(2){
            border-right: none;
          }
        }
      }
    }
    .section3{
      padding: 30px 0;
      .icons{
        width: 90%;
        justify-content: space-between;
        .item{
          width: 48%;
          margin-left: 0;
          margin-bottom: 15px;
        }
      }
    }
    .section4{
      width: 90%;
      margin: 30px auto 100px auto;
      .t{
        font-size: 24px;
      }
      .content{
        margin: 20px 0;
        flex-wrap: wrap;
        .item{
          width: 100%;
          margin-bottom: 30px;
          .icon{
            img{
              width: 60px;
            }
          }
          .p1{
            font-size: 18px;
            margin: 15px 0 10px 0;
          }
          .des{
            font-size: 16px;
          }
        }
      }
    }
  }
}